set(CMAKE_CXX_STANDARD 17)
cmake_minimum_required(VERSION 3.0.0)
project(gomoku-cli VERSION 0.1.0)

include(CTest)
enable_testing()

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)

find_package(Curses)
include_directories(${CURSES_INCLUDE_DIR})

add_executable(gomoku main.cpp ../backend/board.cpp ../backend/game.cpp ../backend/player_vs_player.cpp ../backend/melee.cpp)
target_link_libraries(gomoku ${CURSES_LIBRARIES})
install(TARGETS gomoku DESTINATION bin)
